<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择功能</title>
    <link rel="stylesheet" href="../js/element-ui-2.13.0/lib/theme-chalk/index.css">
    <style>
        #whole {
            margin: 0 auto;
            border: 1px solid #a0e274;
            width: 500px;
            height: 309px;
            display: flex;
            justify-content: center; /*实现水平居中*/
            align-items: center; /*实现垂直居中*/
            top: 50%;
            left: 50%;
            position: absolute;
            margin: -154.5px 0 0 -250px;
            background: #a0e274;
        }

        body {
            background: #a0e274;
        }

        button {
            width: 700px;
            height: 100px;
        }
    </style>
    <script src="../js/vue.js"></script>
    <script src="../js/element-ui-2.13.0/lib/index.js"></script>
    <script src="../js/axios-0.18.0.js"></script>
</head>
<body>
<div id="whole">
    <div>
        <el-button class="button" type="primary" @click="chargeAccounts"><h1>记账本</h1></el-button>
        <br><br><br><br>
        <el-button class="button" type="danger" @click="schedules"><h1>计划本</h1></el-button>
        <br><br><br><br>
        <el-button class="button" type="success" @click="relatives"><h1>亲人本</h1></el-button>
        <br><br><br><br>
        <el-button class="button" type="info" @click="passwords"><h1>密码本</h1></el-button>
        <br><br><br><br>
        <el-button class="button" type="warning" @click="diary"><h1>日记本</h1></el-button>
    </div>
</div>
</body>
<script>
    const app = new Vue({
        el: '#whole',
        data: {
            ruleForm: {
                username: "",
                password: "",
                realName: "",
                sex: "",
                birthday: ""
            }
        },
        methods: {
            chargeAccounts() {
                window.location.href="../chargeAccounts/chargeAccounts.html";
            },
            schedules(){
                window.location.href="../schedules/schedules.html";
            },
            relatives(){

            },
            passwords(){

            },
            diary(){

            }

        }
    });
</script>
</html>